package com.mo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mo.dao.BackendUserMapping;
import com.mo.entity.BackendUser;

@Service("backendUserService")
public class BackendUserService {
      
	@Autowired
	private BackendUserMapping backendUserMapping;
	
	public boolean denglu1(String name,String pass){
		boolean is=false;
		try{
			List<BackendUser> lts=backendUserMapping.denglu(name, pass);
			System.out.println(lts.size());
			if(lts.size()>0){
				is=true;
			}
		}catch(Exception ex){
			ex.printStackTrace();
		}
		return is;
	}

	public BackendUserMapping getBackendUserMapping() {
		return backendUserMapping;
	}

	public void setBackendUserMapping(BackendUserMapping backendUserMapping) {
		this.backendUserMapping = backendUserMapping;
	}

	public BackendUserService(BackendUserMapping backendUserMapping) {
		super();
		this.backendUserMapping = backendUserMapping;
	}

	public BackendUserService() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
